<template>
	<web-view :src="src"></web-view>
</template>

<script>
	export default {
		data() {
			return {
				src:""
			}
		},
		onLoad(option) {
			console.log(option)
			if(option.type == "user"){
				this.setUserUrl(option.uid)
			}
		},
		
		methods: {
			setUserUrl(uid){
				this.src = `https://piers.org/profile.html?uid=${uid}`;
				console.log(this.src)
			}
		}
	}
</script>

<style>

</style>
